package com.haha.common.constant;

public class WareConstant {
    public enum PurchaseStatusEnum {

        CREATE(0, "新建"), ASSIGN(1, "已分配"),
        RECIVE(2, "已领取"), FINSH(3, "已完成"), HASERROR(4, "有异常");

        //todo 枚举类型的使用你又忘了！！记录一下
        private int code;
        private String mesg;

        PurchaseStatusEnum(int code, String mesg) {
            this.code = code;
            this.mesg = mesg;
        }

        public int getCode() {
            return code;
        }

        public String getMesg() {
            return mesg;
        }
    }
        public enum PurchaseDetailStatusEnum {

            CREATE(0, "新建"), ASSIGN(1, "已分配"),
            BUYING(2, "正在采购"), FINSH(3, "已完成"), HASERROR(4, "采购失败 ");

            //todo 枚举类型的使用你又忘了！！记录一下
            private int code;
            private String mesg;

            PurchaseDetailStatusEnum(int code, String mesg) {
                this.code = code;
                this.mesg = mesg;
            }
            public int getCode() {
                return code;
            }
            public String getMesg() {
                return mesg;
            }
    }
}
